package org.jeecg.modules.demo.soSaleOrder.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.soSaleOrder.entity.SoSaleOrder;
import org.jeecg.modules.demo.soSettlement.entity.SoSettlementVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Description: so_sale_order
 * @Author: jeecg-boot
 * @Date:   2021-12-06
 * @Version: V1.0
 */
public interface ISoSaleOrderService extends IService<SoSaleOrder> {

    public SoSaleOrder getBySodHetbh(String mainId);
    public String getMaxCode();
    SoSaleOrder getBysoNo(String soOrder);
    public List<SoSaleOrder> getSoOrderList(String parameter);

    String getTname(String tenantId);

    boolean addSoInvoice(JSONObject jsonObject, HttpServletRequest req);

    Date getTdate(String tenantId);

    public Map<String,Double> getXSOrderQuantity(String beginTime, String endTime);
    public Map<String,Double>  getXSQualityIQ(String beginTime,String endTime);
    public Map<String,Double>  getXSSettlementVolume(String beginTime,String endTime);
    public Map<String,Double>  getXSInvoiceQuantity(String beginTime,String endTime);

    List<SoSettlementVo> queryYingshou();

    SoSettlementVo queryYingshou1();

    List<SoSettlementVo> queryYingfu();

    SoSettlementVo queryYingfu1();
}
